From: Sebastian Keller Date: Sat, 30 Apr 2022 06:24:14 +0000 (+0200) Subject: screenshot: Close screenshot UI if we failed to acquire a grab X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~480^2^2~4 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3e8164cc36e938fcc65a3fe84ebfc8579387c66a;p=gnome-shell.git screenshot: Close screenshot UI if we failed to acquire a grab Otherwise the actors will remain invisible yet reactive covering up the screen. Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5414 Part-of: --- diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index 98cfec468..33ea6e85b 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -1510,8 +1510,10 @@ var ScreenshotUI = GObject.registerClass({ actor: this, onUngrab: () => this.close(), }); - if (!grabResult) + if (!grabResult) { + this.close(true); return; + } this._refreshButtonLayout();